# Author: wangjk
# 2025年10月28日10时52分
# xxx@qq.com

numsby3 = [i for i in range(3, 31, 3)]
for _ in numsby3:
    print(_, end=' ')

print('\n')

nums = [i for i in range(3, 31) if i % 3 == 0]
print(nums)
